package org.lecric.wind44.client.model;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

@SuppressWarnings("serial")
public class Spot extends ISpot implements IsSerializable
{
	private List<SpotInformation> infos=new ArrayList<SpotInformation>();
	private long id;
	private Double latitude;
	private Double longitude;
	
	public Spot()
	{
	}

	public Spot(long id, String name, boolean pub, String user, Double latitude, Double longitude, Integer order)
	{
		super(name, pub, user, order);
		this.id = id;
		this.latitude = latitude;
		this.longitude = longitude;
	}

	public List<SpotInformation> getInfos()
	{
		return infos;
	}
	
	public void setInfos(List<SpotInformation> infos)
	{
		this.infos = infos;
	}

	public long getId() {
		return id;
	}

	/**
	 * @deprecated Use only for serialization
	 */
	@Deprecated
	public void setId(long id) {
		this.id = id;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}
}
